import { sendRequest } from '@/http';

const baseUrl = '/admin/elder/device';

/**
 * 查询长者设备列表
 */
export const queryElderDeviceSummary = (params: { elderId: string }) => {
  return sendRequest({
    url: `${baseUrl}/queryElderDeviceSummary`,
    method: 'get',
    params,
  });
};

/**
 * 查询长者设备详情
 */
export const queryElderDeviceDetail = (modelId: string, elderId: string) => {
  return sendRequest({
    url: `${baseUrl}/queryElderDeviceDetail`,
    method: 'get',
    params: { modelId, elderId },
  });
};
